(use-package calfw
  :bind ([remap calendar] . cfw:open-calendar-buffer)
  (:map cfw:calendar-mode-map
        ("g" . cfw:refresh-calendar-buffer)
        ("SPC" . nil)
        ("RET" . cfw:show-details-command)
        ("n" . cfw:navi-next-month-command)
        ("p" . cfw:navi-previous-month-command)
        ("C-b" . cfw:navi-previous-day-command)
        ("C-f" . cfw:navi-next-day-command)
        ("C-p" . cfw:navi-previous-week-command)
        ("C-n" . cfw:navi-next-week-command)
        ("C-a" . cfw:navi-goto-week-begin-command)
        ("C-e" . cfw:navi-goto-week-end-command)
        ("M-a" . cfw:navi-goto-first-date-command)
        ("M-e" . cfw:navi-goto-last-date-command)
        ("l" . nil))
  :custom
  (cfw:render-line-breakera 'cfw:render-line-breaker-wordwrap))


